#pragma once

#include<string>
class CProtocolFieldBase;
class CFieldFactory
{
public:
	CFieldFactory();
	~CFieldFactory();

	static CProtocolFieldBase* NewFiled(int type);
	static CProtocolFieldBase* NewFiledByType(const std::string& type_str);

	static void DeleteFiled(CProtocolFieldBase*& filed);
};
